body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f9;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 800px;
	margin: 20px auto;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
	text-align: center;
	color: #333;
}

label {
	font-size: 16px;
	color: #555;
	display: block;
	margin-top: 15px;
}

input[type="text"],
textarea {
	width: 100%;
	padding: 10px;
	margin-top: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

textarea {
	resize: vertical;
	min-height: 150px;
}

/* 图片上传区域 */
.image-upload-area {
	margin-top: 15px;
	border: 2px dashed #ccc;
	padding: 20px;
	text-align: center;
	background-color: #f9f9f9;
	border-radius: 8px;
}

.image-upload-area:hover {
	background-color: #e9e9e9;
}

.image-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
}

.image-preview .image-item {
	position: relative;
	width: 100px;
	height: 100px;
	background-color: #f0f0f0;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	cursor: pointer;
}

.image-preview img {
	max-width: 100px;
	max-height: 100px;
	object-fit: cover;
}

.image-preview .remove {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	padding: 3px 5px;
	cursor: pointer;
	font-size: 12px;
	color: #333;
}

.image-preview .add-image {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #d1e7dd;
	font-size: 24px;
	color: #007bff;
}

.submit-btn {
	width: 100%;
	padding: 10px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	cursor: pointer;
	margin-top: 20px;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background-color: #45a049;
}

/* 隐藏选择文件按钮 */
input[type="file"] {
	display: none;
}

/* Markdown 工具栏样式 */
.md-toolbar {
	display: none;
	margin-top: 10px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
	font-size: 16px;
}

.md-toolbar button {
	background: none;
	border: none;
	font-size: 18px;
	margin-right: 10px;
	cursor: pointer;
}

.md-toolbar button:hover {
	color: #007bff;
}

/* 显示 Markdown 工具栏 */
textarea:focus+.md-toolbar {
	display: block;
}

body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f9;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 800px;
	margin: 20px auto;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
	text-align: center;
	color: #333;
}

label {
	font-size: 16px;
	color: #555;
	display: block;
	margin-top: 15px;
}

input[type="text"] {
	width: 100%;
	padding: 10px;
	margin-top: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.submit-btn {
	width: 100%;
	padding: 10px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	cursor: pointer;
	margin-top: 20px;
	transition: background-color 0.3s;
}

.submit-btn:hover {
	background-color: #45a049;
}

.editor-container {
	margin-top: 30px;
}

.preview-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 5px 10px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.preview-btn:hover {
	background-color: #0056b3;
}

.editor-container {
	position: relative;
}

.rendered-content {
	margin-top: 20px;
	padding: 15px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	word-wrap: break-word;
}

textarea {
	width: 100%;
	height: 300px;
	padding: 10px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 14px;
	border: 1px solid #ddd;
	margin-top: 10px;
	resize: vertical;
}